package BanyuanClub.Work.Day0309.猜数字;

public class Master {
    private int answer;
    private boolean right;

    public int masterAnswer(){
        this.answer = (int) Math.random() * 20 + 1;
        return answer;
    }

    public void chealNum(String name , int num){
        if (num == this.answer){
            this.right = true;
        }
    }

    public boolean chealRight(){
        return right;
    }

}
